<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\11\28 0028
 * Time: 10:07
 */
require_once "MongoModel.php";

$mongo_client = new MongoModel();




$filter = ['name' => 'content_id'];
$data = ['$set' => ['id' => 1]];
$options = ['multi' => false, 'upsert' => false];
$namespace = "swoole.ids";
$mongo_client->update($filter, $data, $options, $namespace);